import { loadPromptFromTemplate, generatePrompt } from '../loader.js';

interface DeepAnalyzeProblemParams {
  problemSummary: string;
  analysisMethod?: string[];
  analysisDimensions?: string[];
  complexityLevel?: string;
  memoryDir?: string;
}

export async function getDeepAnalyzeProblemPrompt(params: DeepAnalyzeProblemParams): Promise<string> {
  const template = await loadPromptFromTemplate('deepAnalyzeProblem/index.md');
  
  return generatePrompt(template, {
    problemSummary: params.problemSummary,
    analysisMethod: params.analysisMethod?.join(', ') || '5why, root_cause',
    analysisDimensions: params.analysisDimensions?.join(', ') || 'technical, business, risk',
    complexityLevel: params.complexityLevel || 'moderate',
    memoryDir: params.memoryDir || ''
  });
}